package com.tom.architect02.zframework.viewpager.lazy.fragment;

import android.view.View;
import android.widget.TextView;
import com.tom.architect02.R;
import com.tom.architect02.zframework.viewpager.lazy.LazyFragment;


public class Fragment2 extends LazyFragment {
    private TextView textView;
    @Override
    protected int getLayoutId() {
        return R.layout.fragment;
    }

    @Override
    protected void stopLoadData() {
        textView.setText("加载数据");
    }

    @Override
    protected void initView(View rootView) {
        textView = rootView.findViewById(R.id.fragment_tv);
    }
    @Override
    public void loadData() {
        super.loadData();
        textView.setText("加载数据");
    }

}
